package com.my.bbs.dao;

import com.my.bbs.entity.MyPostCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 86187
 */
public interface MyPostCollectMapper {
    int deleteByPrimaryKey(Long recordId);

    int insert(MyPostCollect record);

    int insertSelective(MyPostCollect record);

    MyPostCollect selectByPrimaryKey(Long recordId);

    MyPostCollect selectByUserIdAndPostId(@Param("userId") Long userId, @Param("postId") Long postId);

    List<MyPostCollect> listByUserId(@Param("userId") Long userId);

    int updateByPrimaryKeySelective(MyPostCollect record);

    int updateByPrimaryKey(MyPostCollect record);
}